package com.example.service.impl;

import com.example.Repository.UserRepository;
import com.example.Repository.VisiterRepository;
import com.example.domain.property.User;
import com.example.domain.visit.Visiter;
import com.example.service.VisiterService;
import org.springframework.beans.factory.annotation.Autowired;

public class VisiterServiceImpl implements VisiterService {
    @Autowired
    private VisiterRepository visiterRepository;
    @Override
    public Visiter checkUser(String username, String password) {
        Visiter visiter= visiterRepository.findByUsernameAndPassword(username, password);
        return visiter;
    }
}
